<html>

<head>
    <meta charset="utf-8">
</head>

<body>
    <script type="text/javascript" src="/lib/jquery-1.8.3.min.js"></script>
    <script>
        $.ajax({
            url: 'http://api.juzhen.net/checkin',
            type: "post",
            data: {
                name: "谢岁飞",
                phone: "13995536191"
            },
            dataType:'json',
            success: function (data) {
                if (data.code == 0) {
                    alert('错误 :' + data.msg)
                } else if (data.code == 1) {
                    alert('更新成功')
                } else if (data.code == 2) {
                    alert('添加成功')
                } else {
                    alert(data);
                }
            }
           
        });
    </script>
</body>

</html>